package router

import (
	"database-platform/handler"
	"github.com/gin-gonic/gin"
)

func InitAccountRoutes(e *gin.Engine) *gin.RouterGroup {
	accountApi := e.Group("/api/v1/accounts")

	accountApi.GET("", handler.ListAccountHandler)
	accountApi.GET("/:id", handler.RetrieveAccountHandler)
	accountApi.POST("", handler.InsertAccountHandler)
	accountApi.PUT("/:id", handler.UpdateAccountHandler)
	accountApi.DELETE("/:id", handler.DeleteAccountHandler)

	return accountApi
}
